import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import './assets/main.css'
import '@/styles/style.scss'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/iconfont/iconfont.css'

import axios from '@/utils/request'
import http from '@/utils/http'
import timer from '@/utils/timer'
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
import VueVirtualScroller from 'vue-virtual-scroller'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.use(VueVirtualScroller)

app.mount('#app')
app.provide('$axios', axios)
app.provide('$http', http)
app.provide('$timer', timer)
